






(function(at,aB)
{
var 
fd="QMWL/11.10.16",


be=at.QMWLCfg||{},


nV=at,



Jd=(function(at)
{
for(var qB=at,Jd=at;qB;)
{
try
{
qB=qB==qB.parent?aB:qB.parent;
qB.document&&(Jd=qB);
}
catch(bi)
{
}
}
return Jd;
}
)(at),


aG=function(at,WE,Ba)
{
var ad=this;
ad.bK=at;

if(!WE&&!Ba)
{
ad.wv=at;
ad.wM="non-json";
}
else
{
ad.wv=WE;
ad.wM=Ba;
}
},

ata=1,


tj=function(at)
{
return at.QMWin||(((at.$=at.Q=at.QMWin=new aG(at))["_guid_"]


=at["_guid_"]=ata++)&&(aG.instance_(at)||true)&&at.$.ready());
},


qk=function(aW)
{
return aW&&typeof aW.ctor_=="function"
&&aW.ctor_()===aG;
},





xu=(
{
"unt":900,
"dev":200,
"err":100,
"usr":0
}
),

aAg=aG.DBG_DEV_TYPE=xu["unt"],
Cp=aG.DBG_DEV_TYPE=xu["dev"],
TS=aG.DBG_ERR_TYPE=xu["err"],
aoa=aG.DBG_USR_TYPE=xu["usr"],


qR=aG.CFG_DBG_TYPE=(xu[be.sMode]||aoa)+1,

Uq="_qMeRR_",


zq=function()
{
var ad=this;

try
{
if(UO())
{
var bz=eN(aG.debug)?
dE(aG.debug,arguments):
arguments,
cO=bz&&bz[0];

if(!bz)
{
return ad;
}

if(bz.length===0)
{
debugger;
}
else
{

if(at.console)
{


at.console.log&&at.console.log(cO);
}
at.Console["debug"].add(cO,
oA(cO)&&!wN(cO)?2:"code");
}
}
}
catch(bi)
{
}

return ad;
},


acR=(
function()
{
var Jr=(at.log&&log.logs)||[],
aRY=+new Date,
Qe=at.log=function()
{
Jr.length>500&&Jr.shift();
Jr.push([jM(),[].slice.apply(arguments).join("")].join(" "));
return this;
};
Qe.logs=Jr;
Qe.serial=function(){return aRY;};
Qe.clear=function(){Jr.splice(0);};
return Qe;
}
)(),













Ww=function(fN)
{
try
{
if(
dE(aG.handleErr,[fN,qR>=TS])!==true
&&qR>TS
&&UO())
{
var eb=
{
msg:fN.oErr.message,
line:fN.oErr.number
||fN.oErr.lineNumber||aB,
stack:fN.oErr.stack,
url:fN.oErr.fileName,
func:(fN.sName||fN.fFunc)
?[fN.sName,fN.fFunc].join(":")
:aB,
args:tA(fN.oArg)
}
;
acR("err: func["+(eb.func||"")+"] msg["+eb.msg+"] line["+
(eb.line||"")+"] url["+(eb.url||"")+"] args ["+
(eb.args||"")+"] stack["+(eb.stack||"")+"]");
zq(eb);
}
}
catch(bi)
{
}
return this;
},


UO=function()
{


return!!at.Console||(at.console&&at.console.log);
},


ow=function(hk,HM,XV)
{
return function()
{
try
{
return hk.apply(this,arguments);
}
catch(bi)
{

if(qR>Cp
&&bi&&(!XV||bi.type!==Uq))
{
Ww(
{
oErr:bi,
sName:HM,
fFunc:hk,
oContext:this,
oArg:arguments
}
);
}

if(qR==aAg+1)
{

throw bi;
}

XV&&oI(bi&&bi.message,HM);

}
return this;
};
},



wj=qR>Cp?ow:function(hk)
{
return hk;
},


oI=function()
{
var bz=arguments,
hP=bz[0],
WM=
{
type:bz[2]||Uq,
message:hN(hP)&&(bz[1]?[bz[1],hP].join(":"):hP)
};


oI.aol=jM();


throw(hN(hP)?WM:jo(WM,hP));
},






UH=function(at,BK,ax)
{
var IX=aoB(at),
cR=(ax||{}).oContext;
if(IX.Jw)
{
dE(cR||at.QMWin,BK);
}
else
{
Bd(IX,["ready",BK,false,at,cR]);
aoU(at,IX);
}
},


aoU=function(at,wL)
{
var bc,uH,nc;

if(wL.VT)
{
return;
}

wL.VT=true;
bc=at.document,
uH=bc.documentElement;

function rz()
{
if(!wL.Jw)
{
if(!bc.body)
{
return at.setTimeout(rz,13);
}

wL.Jw=true;
It(wL,"ready");
}
}

if(bc.readyState==="complete")
{
return rz();
}

if(bc.addEventListener)
{

nc=function()
{
bc.removeEventListener("DOMContentLoaded",nc,false);
at.removeEventListener("load",nc,false)
rz();
};
bc.addEventListener("DOMContentLoaded",nc,false);
at.addEventListener("load",nc,false);
}
else if(bc.attachEvent)
{

nc=function(ae)
{
if(bc.readyState==="complete"||ae.type==="load")
{
bc.detachEvent("onreadystatechange",nc);
at.detachEvent("onload",nc);
rz();
}
};
bc.attachEvent("onreadystatechange",nc);
at.attachEvent("onload",nc);
}
},


aoB=function(at)
{
var aH="_rEaDYinFO_",
bL=at[aH];
if(gf(bL))
{
bL=at[aH]=
{
VT:false,
Jw:false
};
}
return bL;
},


Uz=function(hp,bf)
{
return hp.getElementById(bf);
},


Kh=function(aW)
{
return aW.ownerDocument||aW.document||aW;
},


mW=function(ap)
{
var bc=Kh(ap);
return bc.parentWindow||bc.defaultView;
},


WJ=function(ap,fR)
{

return!(ap.tagName=="TEXTAREA"
&&(fR=="afterBegin"||fR=="beforeEnd"));
},


aqM=function(ap,fR,wo)
{
if(WJ(ap,fR))
{
if(ap.insertAdjacentElement)
{
ap.insertAdjacentElement(fR||"beforeBegin",wo);
}
else
{
switch(fR)
{
case"afterBegin":
ap.insertBefore(wo,ap.firstChild);
break;

case"beforeEnd":
ap.appendChild(wo);
break;
case"afterEnd":
ap.parentNode[ap.nextSibling
?"insertBefore":"appendChild"](wo,ap.nextSibling);
break;
default:
ap.parentNode.insertBefore(wo,ap);
break;
}
}
}
},


zt=function(ap,fR,di)
{
if(WJ(ap,fR))
{
if(ap.insertAdjacentHTML)
{
ap.insertAdjacentHTML(fR,di);
}
else
{
var gJ=ap.ownerDocument.createRange(),
kX=fR.indexOf("before")==0,
Ne=fR.indexOf("Begin")!=-1;

if(kX==Ne)
{
gJ[kX?"setStartBefore":"setStartAfter"](ap);
ap.parentNode.insertBefore(
gJ.createContextualFragment(di),Ne
?ap
:ap.nextSibling
);
}
else
{
var gy=ap[kX?"lastChild":"firstChild"];
if(gy)
{
gJ[kX?"setStartAfter":"setStartBefore"](gy);
ap[kX?"appendChild":"insertBefore"](gJ
.createContextualFragment(di),gy);
}
else
{
ap.innerHTML=di;
}
}
}
}
},






Ry=0,


aqS=/\S/,


dE=function(eh,hg,oY,XE)
{
var cR=this,
Bv,jr,qm;
if(eN(eh))
{
jr=eh;
qm=hg;
}
else if(eN(hg))
{
cR=eh;
jr=hg;
qm=oY;
}
else if(eN(Bv=eh&&eh[hg]))
{
cR=eh;
jr=Bv;
qm=oY;
}
else if(eN(Bv=hg&&hg[oY]))
{
cR=eh;
jr=Bv;
qm=XE;
}

return jr&&ow(jr).apply(cR,qm||[]);
},


wY=function(pr)
{

return!gf(pr)&&!hN(pr)&&le(pr.length)
&&!hO(pr)&&!qy(pr);
},


Bc=function(wA,Ba,mj,bC,cr)
{
var ad=this;

if(mj===1)
{
dE(ad,bC,[Ba=="array"?wA[0]:wA,cr||0,0]);
}
else if(mj>1)
{
for(var i=0;i<mj&&dE(ad,bC,[wA[i],cr||i,i])!==false;i++)
{
;
}
}
else if(mj<0)
{
for(var cz in wA)
{
if(dE(ad,bC,[wA[cz],cr||cz,cz])===false)
{
break;
}
}
}

return ad;
},


Vy=encodeURIComponent,


uL=function(cd)
{
return cd&&cd.replace?(cd.replace(/&/g,"&amp;").replace(/\"/g,"&quot;")
.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\'/g,"&#39;").replace(/\n/g,"<br/>")):cd;
},


mK=function(hk)
{
return function()
{
eN(hk)&&hk.apply(this,arguments);
return this;
};
},


jo=function()
{
for(var bz=arguments,uZ=bz[0],i=1,aN=bz.length;i<aN;i++)
{
var FW=bz[i];
for(var j in FW)
{
uZ[j]=FW[j];
}
}
return uZ;
},


aqB=/<script(.|\s)*?\/script>/gi,
UQ=function(di)
{
return di.replace(aqB,"");
},


WU=function(cr)
{

return qk(cr)?cr.data(0):cr;
},


qy=function(at)
{
try
{
return!!at.setInterval;
}
catch(bi)
{
return false;
}
},


wN=function(aW)
{
return apI.call(aW)=="[object Array]";
},


hO=function(aW)
{
return aW?aW.nodeType!==aB:false;
},


eN=function(aW)
{
return typeof aW=="function";
},


arD=null,
gf=function(aW)
{
return aW===aB||aW===arD;
},


Wj=isNaN,


le=function(aW)
{
return typeof aW=="number"&&!Wj(aW);
},


oA=function(aW)
{
return typeof aW=="object";
},


hN=function(aW)
{
return typeof aW=="string";
},


ql=function()
{
return this;
},


jM=function()
{
return+new Date;
},


BS=parseInt,


Uo=Math.random,


KG=(function()
{
var aoh=/([\^\.\[\$\(\)\|\*\+\?\{\\])/ig;
return function(afb)
{
return afb.replace(aoh,"\\$1");
}
}
)(),


tA=function(aW)
{
if(wN(aW))
{
return aW;
}

if(wY(aW))
{
for(var i=0,hw=[],aN=aW.length;i<aN;i++)
{
hw[i]=aW[i];
}
return hw;
}

return[aW];
},


aoY=function(aW,WW)
{
var gG={};

if(wY(aW))
{
for(var i=0,aN=aW.length;i<aN;i++)
{
gG[aW[i]]=WW;
}
}
else if(!gf(WW))
{
gG[bpP]=aW;
}

return gG;
},


aqo=function(aW,UU)
{
var kb=BS(aW);
return!Wj(kb)||!le(UU)
?kb:UU;
},


UR=function(aW)
{
return new String(aW);
},


apI=Object.prototype.toString,

XG=function(cd)
{
if(hN(cd))
{
var sE=/\s/,
IB=-1,
IG=cd.length;
while(sE.test(cd.charAt(--IG)));
while(sE.test(cd.charAt(++IB)));

return cd.slice(IB,IG+1);
}
},


Db=function(Hi)
{
return[Hi,jM(),Uo()].join("").split(".").join("");
},


uA=(function()
{
var Sx="_uNiQUe_",
DB=0;

function xY(bS,AV)
{
if(oA(bS))
{
if(bS[Sx]!=DB)
{
bS[Sx]=DB;
return true;
}
}
else
{
if(!AV[bS])
{
AV[bS]=DB;
return true;
}
}
return false;
};

return function(GZ)
{
var aN=GZ.length,
eD=[],
r=-1,
i=0,
fY={},
VS;

for(++DB;i<aN;++i)
{
xY(VS=GZ[i],fY)&&(eD[++r]=VS);
}

fY=aB;

return eD;
};
})(),






UY={},



Bd=function(aW,ax)
{
if(!eN(ax[1]))
{
return;
}

var aT=ax[0],
xd=ax[2],
cR=ax[4],
cM=aW.cM||(aW.cM={}),
KZ=!cM[aT],
kH=cM[aT]||(cM[aT]={});

if(KZ&&(hO(aW)||qy(aW)))
{
if(aT=="unload")
{
oI("use 'addPageUnloadEvent(func)' replace add 'unload' event!");
}
else
{
var lB="on"+aT,
TT=aW[lB];

TT&&!xd&&
Lt(aW,aT,kH,true,mW(aW),TT);
Lt(aW,aT,kH,xd,ax[3],ax[1],cR);
aW[lB]=aqY;
}
}
else
{
Lt(aW,aT,kH,xd,ax[3],ax[1],cR);
}
},



Uy=function(aW,ax)
{
var pQ=ax[0],
xd=ax[1],
arA=ax[2],
cR=ax[3];
for(var aT in pQ)
{
Bd(aW,[aT,pQ[aT],xd,arA,cR]);
}
},



Un=function(aW,ax)
{
var oi=ax[1],
il=eN(oi)&&oi.il;
il&&KH(aW,ax[0],il);
},



anv=function(aW,ax)
{
var pQ=ax[0];
for(var aT in pQ)
{
Un(aW,[aT,pQ[aT]]);
}
},


KH=function(aW,au,arz)
{
try
{
var il=parseInt(arz);
if(le(il))
{

var kH=aW.cM&&aW.cM[au],
aD=kH[il];
delete kH[il];
delete aD["_event_"+il];
}
}
catch(bi)
{
}
},


It=function(aW,au,rq,aq)
{
var 
kH=aW.cM&&aW.cM[au],
qm=rq||[],
TW=true;

for(var i in kH)
{
var qo;
try
{
qo=kH[i][0]["_event_"+i];
}
catch(bi)
{
}

qo
?qo.apply(aq||kH[i][1]||aW,
qm)===false&&(TW=false)
:KH(aW,au,i);
}

return TW;
},

Io=
{
Mouse:
{
aT:"click|mousedown|mouseup|mouseomove",
UB:function(au,at,ae)
{




return[au,true,true,at,0,
ae.screenX,ae.screenY,ae.clientX,ae.clientY,
false,false,false,false,0,ae.relativeTarget]
}
},
Key:
{
aT:"keydown|keypress|keyup",
UB:function(au,at,ae)
{



return[au,at,true,true,at,
!!ae.ctrlKey,!!ae.altKey,!!ae.shiftKey,!!ae.metaKey,
ae.keyCode,ae.charCode||ae.keyCode];
}
}
},

UA=(function()
{
var cM={},
Iw;

for(var aT in Io)
{
Iw=Io[aT].aT.split("|");
for(var i=Iw.length-1;i>-1;i--)
{
cM[Iw[i]]=aT;
}
}

return cM;
}
)(),


apO=function(aW,au,ae)
{
if(hO(aW)&&UA[au])
{
var lB=UA[au];

if(aW.fireEvent)
{


if(au==="click"&&aW.tagName==="INPUT"&&aW.type==="submit")
{
aW.click();
}
else
{
aW.fireEvent("on"+au,jo(
Kh(aW).createEventObject(),
{
cancelBubble:false,
returnValue:true
},
ae,
{
type:au
}
));
}
}

else
{
var bY=Kh(aW).createEvent(lB+"Events");
bY["init"+lB+"Event"].apply(bY,
Io[lB].UB(au,mW(aW),ae||{}));
aW.dispatchEvent(bY);
}

return true;
}

return false;
},



anC=function(aW,ax)
{
var aT=ax[0];
return!apO(aW,aT,ax[1])?
It(aW,aT,ax[1],ax[4]):true;
},


Ws=0,
Vq=aB,
asr=/a/.bmr=='//',


aqY=function(ae)
{
var bY=ae||mW(this).event;

if(asr)
{
if(bY.type.indexOf("key")==0
&&jM()-Ws<100
&&Vq!=bY.view)
{
return;
}
Ws=jM();
Vq=bY.view;
}

!bY.currentTarget&&(bY.currentTarget=this);
return It(this,bY.type,[bY]);
},


Bw=function(Ug,Vz,tg)
{
return function()
{
var ad=this,
aD=ad.bK,
bz=arguments,
hP=bz[0],
hv=bz[1],
mL=bz[2],
aoV=bz[3];


if(qk(hP))
{
return bz.callee.apply(hP,tA(bz).slice(1));
}



if(eN(hv)||hN(hP))
{
return ad.each(Ug,
{vParam:[hP,hv,tg,aD,(mL||{}).oContext]});
}


if(gf(hv)||(oA(hv)&&hv.oContext))
{
return ad.each(Vz,
{vParam:[hP,tg,aD,(hv||{}).oContext]});
}

if(!oA(hP))
{
oI("can't add/del/fire event for '"+hP+"'");
}



if(hN(hv))
{
return ad.each([hP],Ug,
{vParam:[hv,mL,tg,aD,(aoV||{}).oContext]});
}


return ad.each([hP],Vz,
{vParam:[hv,tg,aD,(mL||{}).oContext]});
};
},


aqr=0,


aog=function(HV)
{
var KB=HV||"_gLoBAl_eVEnT_";
return UY[KB]||(UY[KB]=
{
name:KB
}
);
},


Lt=function(aW,au,aml,tg,VW,yV,aq)
{
var il=yV.il||(yV.il=++aqr);
if(tg)
{
var VJ="_LinkEvent_"+au;
KH(aW,au,aW[VJ]);
aW[VJ]=il;
}


aml[il]=[VW,aq];

VW["_event_"+il]=ow(yV,"event:"+au,true);
}

;













aG.extend=(function()
{
var 
aqJ=function(UD)
{
var
aoQ=aG.instance_;

aG.instance_=function(at)
{
dE(aoQ,[at]);
dE(UD,[at]);
};

at.QMWin
&&dE(UD,[at]);
},

ase=function(yL,apH)
{
var 
wx=aG.prototype;
if(apH===false)
{

for(var fZ in yL)
{
wx[fZ]=yL[fZ];
}
}
else
{

for(var fZ in yL)
{
wx[fZ]=wj(yL[fZ],fZ,true);
}
}
}

aqQ=function(QT)
{
var 
fd=aG.version?[aG.version(),QT].join("; "):QT;

aG.version=function()
{
return fd;
};
},

Kv=function(hk,aQ,au)
{

return aG.CFG_DBG_TYPE>aG.DBG_DEV_TYPE
?function()
{
var bz=arguments;
if(typeof bz[0]!=au)
{
oI('error : QMWL.extend("'
+aQ+'", _avParam); _avParam must '
+au+'! err param: '+bz[0]);
}
else
{
hk.apply(at,bz);
}
}
:hk;
},
dw=
{
"version":Kv(aqQ,"version","string"),
"method":Kv(ase,"method","object"),
"instance":Kv(aqJ,"instance","function")
}
;


return function()
{
var bz=tA(arguments);
dE(dw[bz.shift()],bz);
return aG;
};
}
)();





aG.extend("version",fd);





aG.extend("method",
{





cfg_:function()
{
return be;
},






ctor_:function()
{
return aG;
},








fnCreater_:mK
}
);





aG.extend("method",
{











error:oI,








debug:zq,









log:acR,










safe:ow,







safeByConf:wj
},
false
);





aG.extend("method",
(function()
{
var

bQE="0.3",


aoX=/\[([\w\-_]+)(=[\'\"]?([\w\-_~]+)[\'\"]?)?\]/,

aoz=/\[[\w\-_]+(=[\'\"]?[\w\-_~]+[\'\"]?)?\]/g,


aph=/^([#\$<:])([\w\-_]+)>?$/,


amN=/.*?\.([\w\-_]+)/,







Xy=/(?:[\w\-~\\.#\[\]=\'\"]+)+|\*|>/ig,




KL=/#([\w\-_]+)/,


KN=/^([\w\*\-_]+)/,


qL=[aB,aB],


arY=
{

"#":function(at,hp,bf)
{
var ar=Uz(hp,bf);
return new aG(at,ar,ar?"non-json":"none");
},


"$":function(at,hp,Ad)
{
if(Ad==="top")
{
return tj(nV);
}
else if(Ad==="this")
{
return tj(at);
}
else
{
var Ez=Uz(hp,Ad),
VL=Ez&&(Ez.contentWindow||at.frames[Ad]);
return qy(VL)?tj(VL):aB;
}
},


"<":function(at,hp,sr)
{
var ar=sr==="fragment"?hp.createDocumentFragment():hp.createElement(sr);
return new aG(at,ar,ar?"non-json":"none");
},


":":function(at,hp,au)
{
if(au==="doc")
{
return new aG(at,hp,"non-json");
}
return at.QMWin;
}
},


UW=
{
"array":function(ahl)
{
return ahl.length;
},
"non-json":function()
{
return 1;
},
"none":function()
{
return 0;
},
"json":function()
{
return-1;
}
};


function xT(tK,Qd,VY,aqD)
{
var FD=!Qd||Qd.test(tK.className),
i=0,IJ,Ja;

while(FD&&i<aqD)
{
IJ=tK.getAttribute((Ja=VY[i++])[1]);
FD=Ja[2]?IJ===Ja[3]:!!IJ;
}

return FD;
}


function Lr(gB)
{
var fB=gB.match(aoz);
if(fB)
{
for(i=fB.length-1;i>=0;i--)
{
fB[i]=fB[i].match(aoX);
}
}
return fB;
}


function Nt(gB)
{
var ta=(gB.match(amN)||qL)[1];
return ta&&RegExp('(^|\\s)'+ta+'(\\s|$)');
}



function Cj(Bh,An,aem)
{
var wW=Bh.pop();

if(wW==='>')
{
return Cj(Bh,An,true);
}

var bw=(wW.match(KL)||qL)[1],
gH=Nt(wW),
gU=(wW.match(KN)||qL)[1],
fB=Lr(wW),
nO=fB?fB.length:0,
eD=[],
aie=-1,
ge=-1,
eg,
cU,
Ip;


gU&&(gU=gU=="*"?"":gU.toUpperCase());

while((eg=An[++ge]))
{
cU=eg.parentNode;

do
{
Ip=(!bw||cU.id===bw)&&
(!gU||cU.nodeName==gU)&&
xT(cU,gH,fB,nO);

if(aem||Ip)
{
break;
}

}
while((cU=cU.parentNode)&&cU.getAttribute);

Ip&&(eD[++aie]=eg);
}

return Bh[0]&&eD[0]?Cj(Bh,eD):eD;
}


function anp(gB,An)
{
var hj=gB.match(Xy),
ny=hj.pop(),
bw=(ny.match(KL)||qL)[1],
gH=Nt(ny),
fB=Lr(ny),
nO=fB?fB.length:0,
gU=(ny.match(KN)||qL)[1],
eB=[],
i=-1,
ge=-1,
eg;

gU&&(gU=gU=="*"?"":gU.toUpperCase());

while(eg=An[++i])
{
(!bw||eg.id===bw)&&
(!gU||eg.nodeName==gU)&&
xT(eg,gH,fB,nO)&&
(eB[++ge]=eg);
}

return hj[0]&&eB[0]?Cj(hj,eB):eB;
}



function Bj(gB,aq)
{
if(aq.querySelectorAll&&qR<Cp)
{
return tA(aq.querySelectorAll(gB));
}

if(gB.indexOf(',')>-1)
{
var Uw=gB.split(/,/g),
eD=[],
i=0,
aN=Uw.length;
for(;i<aN;++i)
{
eD=eD.concat(Bj(Uw[i],aq));
}
return uA(eD);
}

var hj=gB.match(Xy),
ny=hj.pop(),
bw=(ny.match(KL)||qL)[1],
gH=Nt(ny),
fB=Lr(ny),
nO=fB?fB.length:0,
gU=(ny.match(KN)||qL)[1],
eB;


if(bw)
{
if(aq.getElementById)
{
var ar=aq.getElementById(bw);
if(!ar||(gU&&ar.nodeName!=gU.toUpperCase())||
!xT(ar,gH,fB,nO))
{
return[];
}
eB=[ar];
}
else
{
var iu=aq.getElementsByTagName(gU||'*'),
i=-1,ge=-1,eg;
eB=[];
while(eg=iu[++i])
{
eg.id==bw&&xT(eg,gH,fB,nO)&&
(eB[++ge]=eg);
}
}
}
else
{
var iu=aq.getElementsByTagName(gU||'*');
if(gH||nO)
{
var i=-1,ge=-1,eg;
eB=[];
if(!nO)
{
while(eg=iu[++i])
{
gH.test(eg.className)&&(eB[++ge]=eg);
}
}
else
{
while(eg=iu[++i])
{
xT(eg,gH,fB,nO)&&(eB[++ge]=eg);
}
}
}
else
{
eB=tA(iu);
}
}

return hj[0]&&eB[0]?Cj(hj,eB):eB;
}


function atl(ap,ax)
{

if(hO(ap))
{
var lG=ax.lG;
lG.eD=lG.eD.concat(Bj(ax.anJ,ap));
}
}


function Nr(fP,cr)
{
var ad=this,
aD=ad.bK;


if(!fP)
{
return new aG(aD,fP,"none");
}


if(hN(fP))
{

if(!qk(cr))
{
var bc=ad.bK.document,
fu;


if(fP=="body")
{
return new aG(aD,bc.body,"non-json");
}


if(fu=aph.exec(fP))
{
return arY[fu[1]](aD,bc,fu[2]);
}


return new aG(ad.bK,Bj(fP,cr||bc),"array");
}
else
{

return cr.find(fP);
}
}


if(qk(fP))
{
return fP;
}


if(hO(fP))
{

if(aD!=mW(fP))
{
var Uh=mW(fP);
return qy(Uh)
?tj(Uh).$(fP):aB;
}
return new aG(aD,fP,"non-json");
}


if(qy(fP))
{
return tj(fP);
}


if(UW[cr])
{
return new aG(aD,fP,cr);
}


if(wY(fP))
{
return new aG(aD,fP,"array");
}


return new aG(aD,fP,"non-json");
}


function asH(ap,ax)
{
if(hO(ap))
{
var eB=ax.eB;
eB.push(ap=ap.parentNode);

if(ax.anT)
{
while((ap=ap.parentNode)&&ap.nodeType!==9)
{
eB.push(ap);
}
}
}
}


function UZ(gB,QR)
{
var eB=[];
this.each(asH,{vParam:{eB:eB,anT:QR}});
return new aG(this.bK,anp(gB,this.size()>1?uA(eB):eB),"array");
}


return(
{














$:Nr,














Q:Nr,








parent:function(gB)
{

return UZ.call(this,gB,false);
},








parents:function(gB)
{
return UZ.call(this,gB,true);
},




























call:dE,




























callEx:mK(dE),























each:function(eh,hg,oY)
{
var ad=this,
bpD,boD,jN,cC;

if(eN(eh))
{
cC=hg||{};
Bc.call(cC.oContext||ad,ad.wv,ad.wM,
ad.size(),eh,cC.vParam);
}
else if(qk(eh))
{
cC=oY||{};
Bc.call(cC.oContext||ad,eh.wv,eh.wM,
eh.size(),hg,cC.vParam);
}
else if(eN(hg)&&!gf(eh))
{
cC=oY||{};
if(wY(eh))
{
Bc.call(cC.oContext||ad,eh,"array",
eh.length,hg,cC.vParam);
}
else
{
Bc.call(cC.oContext||ad,eh,"json",
-1,hg,cC.vParam);
}
}

return ad;
},









find:function(gB)
{

var ad=this,
lG={eD:[]};
ad.each(atl,{vParam:{anJ:gB,lG:lG}});
return new aG(ad.bK,ad.size()>1?uA(lG.eD):lG.eD,"array");
},








data:function(wg)
{
var ad=this,
az=ad.wv,
adl=ad.wM;
return gf(wg)||adl=="non-json"||gf(az)?az:az[wg];
},








is:qk,








isWinEqual:function(aW)
{


return(qk(aW)?aW.bK:aW)==this.bK;
},







size:function()
{
var ad=this;
return UW[ad.wM](ad.wv);
}
}
);
}
)()
);





aG.extend("method",
(function()
{

var bc=document,
uH=bc.documentElement,
tl={},
gI=bc.createElement("script"),
cZ=bc.createElement("div"),
bw="script"+jM(),
Ju,oX;

cZ.style.display="none";
cZ.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
Ju=cZ.getElementsByTagName("*"),
oX=cZ.getElementsByTagName("a")[0];


if(Ju&&Ju.length&&oX)
{



tl.opacity=/^0.55$/.test(oX.style.opacity);



tl.cssFloat=!!oX.style.cssFloat;

gI.type="text/javascript";
try
{
gI.appendChild(bc.createTextNode("window."+bw+"=1;"));
}
catch(bi){}

uH.insertBefore(gI,uH.firstChild);




if(at[bw])
{
tl.scriptEval=true;
delete at[bw];
}

uH.removeChild(gI);
}


UH(at,function()
{
var cZ=document.createElement("div");
cZ.style.width=cZ.style.paddingLeft="1px";

document.body.appendChild(cZ);
tl.boxModel=cZ.offsetWidth===2;
document.body.removeChild(cZ).style.display='none';
cZ=null;
}

);








aG.support=function(Wz)
{
return Wz?!!tl[Wz]:tl;
}

return(
{







support:aG.support
}
);
}
)()
);





aG.extend("method",
(function()
{

var VG=navigator.userAgent,
eP=VG.toLowerCase(),



eA=(
{
appName:navigator.appName,
userAgent:VG
}
),



mQ,



hu,



iS
;


function Ku()
{
if(!mQ)
{
var iS=KD(),
fu;

if(iS.ie)
{
fu=/(maxthon)[\x20]([\w.]+)/.exec(eP)
||/(tencenttraveler)[\x20]([\w.]+)/.exec(eP)
||/(the[\x20]?world)[\x20]?([\w.]+)?/.exec(eP)
||/(avant)Browser[\x20]([\w.]+)/.exec(eP)
||/(360se)[\x20]([\w.]+)/.exec(eP)
||/(se)[\x20]([\w.]+)/.exec(eP);
}

else if(iS.webkit)
{
fu=/(chrome)\/([\w.]+)/.exec(eP)
||/(version)\/([\w.]+)/.exec(eP);
}

else if(iS.gecko)
{
fu=/(firefox)\/([\w.]+)/.exec(eP);
}

if(fu)
{
mQ={};
mQ[
eA.app=
{
tencenttraveler:"tt",
se:"sogou",
version:"safari"
}
[fu[1]]||fu[1]
]=eA.appVersion=fu[2]||"0";

mQ[eA.app+eA.appVersion]=
mQ[eA.app+eA.appVersion.split(".")[0]]=
eA.appVersion;
}
else
{
mQ=iS;
eA.app=eA.engine;
eA.appVersion=eA.engineVersion;
}
}

return mQ;
}


function aow()
{
Ku();
Ur();
return eA;
}


function Ur()
{
if(!hu)
{
var hu={};
if(/windows/.test(eP)||/win32/.test(eP))
{
if(/nt\x206.0/.test(eP)||/windows vista/.test(eP))
{
hu[eA.os="vista"]=hu["win"]="6.0";
}
else if(/nt\x206.1/.test(eP))
{
hu[eA.os="win7"]=hu["win"]="6.1";
}
else
{
hu[eA.os="win"]="0";
}
}
else if(/ipad/.test(eP))
{
hu[eA.os="ipad"]="0";
}
else if(/mac\x20os\x20x/.test(eP))
{
hu["mac os x"]=hu["mac"]=(/mac\x20os\x20x\x20([\w.]+)/.exec(eP)||[])[1]||"0";
eA.os="mac os x "+hu["mac"];
}
else if(/macintosh/.test(eP))
{
hu[eA.os="mac"]="0";
}
else if(/linux/.test(eP))
{
hu[eA.os="linux"]="0";
}
}
return hu;
}


function KD()
{
if(!iS)
{
var fu=/(webkit)[\x20\/]([\w.]+)/.exec(eP)
||/(opera)(?:.*version)?[\x20\/]([\w.]+)/.exec(eP)
||/ms(ie)\x20([\w.]+)/.exec(eP)
||!/compatible/.test(eP)&&/(mozilla)(?:.*?\x20rv:([\w.]+))?/.exec(eP)
||[];
iS={};
iS[eA.engine={mozilla:"gecko"}[fu[1]]||fu[1]||"unknow"]
=eA.engineVersion=fu[2]||"0";

iS[eA.engine+eA.engineVersion]=
iS[eA.engine+eA.engineVersion.split(".")[0]]=
eA.engineVersion;
}
return iS;
}


return(
{







browser:function(bT)
{
var bL=aow();
return bT?bL[bT]:bL;
},










isBrowser:function(aqp)
{
var Vl=false,
iS=KD(),
mQ=Ku();

this.each(aqp.split("|"),function(sq)
{
if(iS[sq]||mQ[sq])
{
return!(Vl=true);
}
}
);
return Vl;
},








browserVersion:function(sq)
{
return Ku()[sq]||KD()[sq];
},








isOS:function(asz)
{
var VF=false,
hu=Ur();
this.each(asz.split("|"),function(anW)
{
if(hu[anW])
{
return!(VF=true);
}
}
);
return VF;
}
}
);
}
)()
);





aG.extend("method",
(function()
{
function aqg(Uu,fx)
{


var jl=Uu.href;
return fx==="hash"&&jl.indexOf("#")>0
&&("#"+jl.split("#")[1])
||Uu[fx];
}
var awN=/^(?:.*?\?)?(\S*?)(?:#.*)?$/,
axv=/&([^&]+?)=([^&]*?)(?=&)/g;

return{












locSearch:function(bu)
{
var aK={};
(bu||this.bK.location.href).replace(awN,"&$1&").replace(axv,function(bEm,EQ,axj)
{
var	Fx=aK[EQ=decodeURIComponent(EQ)],
Ot=decodeURIComponent(axj);
if(Fx==aB)
{
aK[EQ]=Ot;
}
else if(hN(Fx))
{
aK[EQ]=[Fx,Ot];
}
else
{
Fx.push(Ot);
}
return"";
}
);
return aK;
},













loc:function(fx,cj)
{
var lS=this.bK.location;
if(gf(cj))
{
return aqg(lS,fx);
}
else
{
lS[fx]=cj;
return this;
}
}
}
})()
);





aG.extend("method",
{







append:function(cr)
{
return this.insert(cr,"beforeEnd");
},








appendTo:function(ap)
{
var ad=this;
return ad.$(ap).append(ad)&&ad;
},








prepend:function(cr)
{
return this.insert(cr,"afterBegin");
},








prependTo:function(ap)
{
var ad=this;
return ad.$(ap).prepend(ad)&&ad;
},








fragment:function(di)
{
var ad=this,
azT=ad.$("<div>").html(di),
axb=ad.$("<fragment>"),
abA=azT.data(0).childNodes,
eB=[];

for(var i=0,l=abA.length;i<l;i++)
{
eB[i]=abA[i].cloneNode(true)
}

return di?new aG(mW(axb.data(0)),eB,"array"):ad;
},








replaceWith:function(di)
{
return this.insert(di,"afterEnd").remove();
},









attr:function(bT,er)
{
var ad=this;

if(gf(er))
{
var BE;
ad.each(function(ap)
{
if(hO(ap))
{
BE=ap[bT];
gf(BE)&&(BE=ap.getAttribute(bT));
return false;
}
}
);
return BE;
}
else
{
return ad.each(function(ap)
{
if((ap.tagName=="INPUT"||ap.tagName=="TEXTAREA")&&bT=="value")
{
ap.value=er;
}
else if(le(er)||hN(er))
{
ap.setAttribute(bT,er)
}
else
{
ap[bT]=er;
}
}
);
}
},







focus:function()
{
var ar=this.data(0);
ar&&ar.focus&&ar.focus();
return this;
},







blur:function()
{
var ar=this.data(0);
ar&&ar.blur&&ar.blur();
return this;
},








rmAttr:function(bT)
{
return this.each(function(ap)
{
ap.removeAttribute&&ap.removeAttribute(bT);
ap[bT]&&(ap[bT]=aB);
}
);
},








contain:function(ap)
{
var ad=this,
nw=ad.data(0),
IH=WU(ap);

if(hO(nw)&&hO(IH))
{
if(nw.contains)
{
return nw.contains(IH);
}
else if(nw.compareDocumentPosition)
{
var MQ=nw.compareDocumentPosition(IH);
return(MQ==20||MQ==0);
}
}

return false;
},








html:function(di)
{
var ad=this;

if(gf(di))
{
var cJ;
ad.each(function(ap)
{
if(ap.nodeType===1)
{
cJ=ap.innerHTML;
return false;
}
}
);
return cJ||"";
}
else
{
return ad.each(function(ap)
{
ap.nodeType===1&&(ap.innerHTML=di);
}
);
}
},









insert:function(cr,fR)
{
var ad=this,
ME=WU(cr),
WK=hO(ME)
?aqM:zt;
ari=WK==zt;

return ad.each(
function(ap)
{
if(hO(ap))
{
WK(ap,fR,ME);
return ari;
}
}
);
},









insertTo:function(ap,fR)
{
var ad=this;
return ad.$(ap).insert(ad,fR)&&ad;
},


















insertIframe:function(wE,fR)
{
return this.each(
function(ap)
{
if(hO(ap))
{
var $=this,
Iu="_ifRAmeoNlQAd_",
dw=wE||{},
bw=dw.id=dw.id||Db(),
aD=mW(ap),
pO=aD[Iu],
TX=[];

!eN(pO)&&(pO=aD[Iu]=function(bf,EH)
{
if(!EH.getAttribute("_ok_")&&!arguments.callee[bf].src)
{
return;
}
$.call(EH,arguments.callee[bf].onload);
}
);

pO[bw]={onload:dw.onload,src:dw.src};
dw.onload=Iu+"('"+bw+"', this);";
dw.src=dw.src||[
"javascript:document.open();document.writeln('<head><script>",
location.host!=document.domain
?"document.domain=\\x22"+document.domain+"\\x22;"
:"",
"frameElement.setAttribute(\\x22_ok_\\x22,true);<\/script></head>');document.close();"
].join("");

$.each(dw,function(cj,bT)
{
TX.push(bT,'="',cj,'" ');
}
);

zt(ap,fR,'<iframe '+TX.join("")+'></iframe>');
return false;
}
}
);

},








inWin:function(ap)
{
return ap?mW(ap):this.bK;
},













ready:function(BK,ax)
{
var ad=this;
ad.isAccess()&&UH(ad.bK,BK,ax);
return ad;
},









remove:function()
{
return this.each(ow(function(ap)
{
try{ap.parentNode.removeChild(ap);}catch(bi){}
}
));
},








rewrite:ow(function(di)
{
var ad=this,
bc=ad.bK.document;
bc.open();
bc.write(di);
bc.close();
return ad;
}
)
}
);






aG.dO=
{
Ud:function()
{
var cX=document.body,
bp=document.createElement("div"),
tx,lm,fM,qX,
apk=parseFloat($.$(cX).css("marginTop"))||0,
cJ="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div>"
+"<table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";

$.extend(bp.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});

bp.innerHTML=cJ;
cX.insertBefore(bp,cX.firstChild);
tx=bp.firstChild;
lm=tx.firstChild;
qX=tx.nextSibling.firstChild.firstChild;

aG.dO.doesNotAddBorder=(lm.offsetTop!==5);
aG.dO.doesAddBorderForTableAndCells=(qX.offsetTop===5);

lm.style.position="fixed",lm.style.top="20px";

aG.dO.WI=(lm.offsetTop===20||lm.offsetTop===15);
lm.style.position=lm.style.top="";

tx.style.overflow="hidden",tx.style.position="relative";
aG.dO.aou=(lm.offsetTop===-5);

aG.dO.btF=(cX.offsetTop!==apk);

cX.removeChild(bp);
cX=bp=tx=lm=fM=qX=null;
aG.dO.Ud=ql;
}













};









































aG.extend("method",
(function()
{
var tv={};
function anD(ap,aC,bF,Hq)
{

var zv=[],
cU=ap,
yD,
cN;

while(cU)
{
yD=null;
if(Hq.$(cU).css("display")=="none")
{
yD={};
cN=cU.style;
for(var aH in aC)
{
yD[aH]=cN[aH];
cN[aH]=aC[aH];
}
}
zv.push(cU,yD);
cU=cU.parentNode;
}
dE(bF);

for(var i=zv.length-1;i>0;i-=2)
{
if(zv[i])
{
cN=zv[i-1].style;
for(var aH in aC)
{
cN[aH]=zv[i][aH];
}
}
}
}








function IV(aQ,aro,aqe,TY)
{
var ad=this,
ar=ad.data(0),
pd=[
aro?"":"padding",
-1,
aqe?"":"border",
-1,
TY?"margin":"",
1
],
lC;

function Vn()
{
var Bq;
if(aQ.toLowerCase()=='width')
{
lC=ar.offsetWidth;
Bq=["Left","Right"];
}
else
{
lC=ar.offsetHeight;
Bq=["Top","Bottom"];
}
for(var i=pd.length-2;i>=0;i-=2)
{
if(pd[i])
{
for(var j=Bq.length-1;j>=0;j--)
{
lC+=pd[i+1]*(parseFloat(ad.css(pd[i]+Bq[j]))||0);
}
}
}
return lC;
}

if(ar.offsetWidth>0)
{
Vn();
}
else
{
var arU={
position:"absolute",
visibility:"hidden",
display:"block"
};
anD(ar,arU,Vn,ad);
}
return lC;
}


function ate()
{
var ad=this,
ce=ad.data(0);
if(!ce||!ce.ownerDocument)
{
return null;
}

if(ce===ce.ownerDocument.body)
{
return null;
}

var pd=ce.getBoundingClientRect(),
aD=ad.inWin(ce),
bc=ce.ownerDocument,
cX=bc.body,
gh=bc.documentElement,
AB=gh.clientTop||cX.clientTop||0,
Xa=gh.clientLeft||cX.clientLeft||0,
cW=pd.top
+(aD.pageYOffset||aG.support("boxModel")&&gh.scrollTop||cX.scrollTop)
-AB,
fI=pd.left
+(aD.pageXOffset||aG.support("boxModel")&&gh.scrollLeft||cX.scrollLeft)
-Xa;
return{top:cW,left:fI};
}
function LO()
{
var ad=this,
ce=ad.data(0);
if(!ce||!ce.ownerDocument)
{
return null;
}

if(ce===ce.ownerDocument.body)
{
return null;
}
aG.dO.Ud();
var AA=ce.offsetParent,
aob=ce,
bc=ce.ownerDocument,
mJ,gh=bc.documentElement,

cX=bc.body,
tp=bc.defaultView,
wq=tp?tp.getComputedStyle(ce,null):ce.currentStyle,
cW=ce.offsetTop,qF=ce.offsetLeft;
while((ce=ce.parentNode)&&ce!==cX&&ce!==gh)
{
if(aG.dO.WI&&wq.position==="fixed")
{
break;
}
mJ=tp?tp.getComputedStyle(ce,null):ce.currentStyle;
cW-=ce.scrollTop;
qF-=ce.scrollLeft;

if(ce===AA)
{
cW+=ce.offsetTop;
qF+=ce.offsetLeft;

if(aG.dO.doesNotAddBorder&&!(aG.dO.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(ce.nodeName)))
{
cW+=parseFloat(mJ.borderTopWidth)||0;
qF+=parseFloat(mJ.borderLeftWidth)||0;
}

aob=offsetParent,offsetParent=ce.offsetParent;
}

if(aG.dO.aou&&mJ.overflow!=="visible")
{
cW+=parseFloat(mJ.borderTopWidth)||0;
qF+=parseFloat(mJ.borderLeftWidth)||0;
}

wq=mJ;
}

if(wq.position==="relative"||wq.position==="static")
{
cW+=cX.offsetTop;
qF+=cX.offsetLeft;
}

if(aG.dO.WI&&wq.position==="fixed")
{
cW+=Math.max(gh.scrollTop,cX.scrollTop);
qF+=Math.max(gh.scrollLeft,cX.scrollLeft);
}

return{top:cW,left:qF};
}
tv.offset="getBoundingClientRect"in document.documentElement?ate:LO;

function atm(aQ)
{
var fZ="scroll"+aQ;

tv[fZ]=function()
{
var ad=this,
ce=ad.data(0),
aD=ad.inWin(ce);

if(!ce)
{
return null;
}

return aD?("pageXOffset"in aD)?aD[aQ=="Top"?"pageYOffset":"pageXOffset"]:
aG.support("boxModel")&&aD.document.documentElement[fZ]||
aD.document.body[fZ]:
ce[fZ];
};
}
var hw=["Left","Top"];
for(var i=0;i<hw.length;i++)
{
atm(hw[i]);
}
hw=["Height","Width"];
function asG(aQ)
{
var au=aQ.toLowerCase();

tv["inner"+aQ]=function()
{
var ad=this;
return ad.size()?dE(ad,IV,[aQ,true]):null;
};


tv["outer"+aQ]=function(TY)
{
var ad=this;
return ad.size()?dE(ad,IV,[aQ,true,true,true]):null;
};
tv[au]=function()
{

var ad=this,
ce=ad.data(0);


return(ce&&typeof ce==="object"&&"setInterval"in ce)?

ce.document.compatMode==="CSS1Compat"&&ce.document.documentElement["client"+aQ]||
ce.document.body["client"+aQ]:

(ce.nodeType===9)?

Math.max(
ce.documentElement["client"+aQ],
ce.body["scroll"+aQ],ce.documentElement["scroll"+aQ],
ce.body["offset"+aQ],ce.documentElement["offset"+aQ]
):
dE(ad,IV,[au]);

};
}




for(var i=0;i<hw.length;i++)
{
asG(hw[i]);

}
return tv;
}
)()
);



aG.extend("method",
(function()
{
var VU=/alpha\([^)]*\)/,
aoR=/z-?index|font-?weight|opacity|zoom|line-?height/i,
aqv=/-([a-z])/ig,
arW=/opacity=([^)]*)/,
apR=/([A-Z])/g,
arN=function(brA,anN)
{
return anN.toUpperCase();
},

VD=aG.camelName=function(aQ)
{
return aQ.replace(aqv,arN);
}
;

function VP(ap)
{

return!(!ap||ap.nodeType===3||ap.nodeType===8)
}

function WC(ap,aQ)
{
var Yx=ap.style,
tp=mW(ap),
sB=ap.currentStyle,
fV;


if(aQ==="opacity"&&!aG.support("opacity")&&sB)
{
fV=arW.test(sB.filter||"")?
(Number(RegExp.$1)/100)+"":"";

return fV===""?"1":fV;
}





if(sB)
{
var arR=VD(aQ);
fV=sB[aQ]||sB[arR];




}
else if(ap.nodeType!=9)
{
var mJ=tp.getComputedStyle(ap,null);
aQ=aQ.replace(apR,"-$1").toLowerCase();

fV=mJ.getPropertyValue(aQ);
aQ==="opacity"&&fV===""&&(fV="1");
}

return fV;
}

function NQ(ap,aQ,er)
{

if(gf(er))
{
return;
}
var cN=ap.style||ap;

if(!aG.support("opacity")&&aQ==="opacity")
{


cN.zoom=1;

var Wc=parseInt(er,10)+""==="NaN"?"":"alpha(opacity="+er*100+")",
Wm=cN.filter||WC(ap,"filter")||"";
cN.filter=VU.test(Wm)?Wm.replace(VU,Wc):Wc;
}
aQ=VD(aQ);
if(le(er)&&!aoR.test(aQ))
{
er+="px";
}
ap.style[aQ]=er;
}

function aoM(ap,TL)
{
VP(ap)&&NQ(ap,TL[0],TL[1]);
}

function arC(ap,Kx)
{
if(VP(ap))
{
for(var aH in Kx)
{
Kx.hasOwnProperty(aH)&&NQ(ap,aH,Kx[aH]);
}
}
}


return(
{

















css:function(eh,hg)
{
var ad=this;

if(gf(hg))
{
if(hN(eh))
{
var ar=ad.data(0);
if(hO(ar))
{
return WC(ar,eh);
}

return aB;
}
else
{
ad.each(arC,{vParam:eh});
}
}
else
{
ad.each(aoM,{vParam:arguments});
}

return this;
},







show:function()
{
return this.css("display","");
},







hide:function()
{
return this.css("display","none");
},







toggle:function()
{
return this[this.css("display")=="none"?"show":"hide"]();
},









addClass:function(lk)
{
return!gf(lk)?this.each(
function(ap)
{
var dz=" "+ap.className+" ";
if(dz.indexOf(" "+lk+" ")<0)
{
ap.className+=ap.className?" "+lk:lk;
}
}
):this;
},








rmClass:function(lk)
{
return this.each(
function(ap)
{
if(!gf(lk))
{
var dz=" "+ap.className+" ";
dz=dz.replace(" "+lk+" "," ");
ap.className=XG(dz);
}
else
{
ap.className="";
}
}
);
},









hasClass:function(lk)
{
return!!this.data(0)&&(" "+this.data(0).className+" ").indexOf(" "+lk+" ")>-1;
}
}
);
}
)()
);





aG.extend("method",
{






addPageUnloadEvent:function(RW)
{
var ad=this,
aD=ad.bK;

if(!aD.Fa)
{
aD.Fa=[RW];
aD.onunload&&aD.Fa.push(aD.onunload);
aD.onunload=function()
{
var abH=aD.Fa;

for(var i=abH.length-1;i>-1;i--)
{
dE(aD,abH[i]);
}
};
}
else
{
aD.Fa.push(RW);
}
return ad;
},









































addEvent:Bw(Bd,Uy,false),


























delEvent:Bw(Un,anv),










event$:function(HV)
{
return this.$(aog(HV));
},


























fireEvent:Bw(anC),













































on:Bw(Bd,Uy,true),









stopPropagation:function(ae)
{
if(ae)
{
ae.stopPropagation?ae.stopPropagation()
:(ae.cancelBubble=true);
}
return this;
},








preventDefault:function(ae)
{
if(ae)
{
ae.preventDefault?ae.preventDefault()
:(ae.returnValue=false);
}

return this;
},








target:function(ae)
{
return ae&&(ae.srcElement||ae.target);
}
}
);





aG.extend("method",
(function()
{
var arf=/(\?|&)r=.*?(&|$)/,
anS=/\?/,

Kl=0,

Kk=
{
bAsync:true,
bCache:true,
sContentType:"application/x-www-form-urlencoded",
bGlobal:true,
nTimeout:5000,
sType:"GET",




ongetxhr:at.XMLHttpRequest&&(at.location.protocol!=="file:"||!at.ActiveXObject)
?function(Iz)
{
return new(Iz||at).XMLHttpRequest();
}
:ow(
function(Iz)
{
return new(Iz||at).ActiveXObject("Microsoft.XMLHTTP");

}
)
},
VC=
{
xml:"application/xml, text/xml",
html:"text/html",
script:"text/javascript, application/javascript",
json:"application/json, text/javascript",
text:"text/plain",
pK:"*/*"
},
anw="|onbeforesend|oncomplete|ondatafilter|onerror|onsuccess|";


function QL(er,aj,wg)
{
var Vr=le(wg),

cz=Vr?er.name:wg,
ho=Vr?er.value:er;
!gf(cz)&&aj.push(Vy(cz)+"="
+Vy(eN(ho)
?ow(ho,"ajax build data : "+cz+" func")():ho));
}


function VE(bu,Mz)
{
return bu+(anS.test(bu)?"&":"?")+Mz;
}


function asZ(bS,bnH)
{
var ad=this,
az=[];

if(hN(bS))
{
az.push(bS);
}
else if(wN(bS)||oA(bS))
{
ad.each(bS,QL,{vParam:az});
}

return az.join("&");
}


function arp(cF,au,bq)
{
var FI=cF.getResponseHeader("content-type")||"",
Wq=au==="xml"||!au&&FI.indexOf("xml")>=0,
cO=Wq?cF.responseXML:cF.responseText;

Wq&&cO.documentElement.nodeName==="parsererror"&&oI("parsererror");


bq&&eN(bq.ondatafilter)&&(cO=bq.ondatafilter(cO,au));


if(hN(cO))
{

if(au==="json"||!au&&FI.indexOf("json")>=0)
{

}

else if(au==="script"||!au&&FI.indexOf("javascript")>=0)
{

}
}

return cO;
}


function TK(ae)
{
var TQ=false;
for(var aH in ae)
{

if(eN(ae[aH])&&anw.indexOf("|"+aH+"|")!=-1)
{
TQ=true;
break;
}
}
return TQ;
}


function apz(cF)
{
try
{
return!cF.status&&location.protocol==="files:"
||(cF.status>=200&&cF.status<300)
||cF.status===304

||cF.status===1223

||cF.status===0;
}
catch(bi){}

return false;
}


function Ih(lE,au,aok)
{
var VH=aok||"onsuccess",
bm=
{
sUrl:lE[0],
sType:au
},
hv=lE[1],
mL=lE[2];

if(eN(hv))
{
bm[VH]=hv;
bm.sDataType=mL;
}

else if(TK(hv))
{
jo(bm,hv,{sDataType:mL});
}
else if(TK(mL))
{
jo(bm,mL,{vData:hv,sDataType:lE[3]});
}
else
{
bm.vData=hv;
bm[VH]=mL;
bm.sDataType=lE[3];
}

return bm;
}

return(
{
































ajax:function(bq)
{
var ad=this,
bm=jo({},Kk,bq),
cR=bm.oContext||bm,
aT=bm.sType.toUpperCase(),
bj=bm.sUrl,
gL=asZ.call(ad,bm.vData,bm.sContentType),
wO=false,
ez,Kr,eb,dF,dR;

if(!bj)
{
return ad;
}


if(bm.bCache===false&&aT==="GET")
{
var Ut="r="+jM(),
DN=bj.replace(arf,"$1"+Ut+"$2");
bj=bj===DN?VE(DN,Ut):DN;
}

gL&&aT==="GET"&&(bj=VE(bj,gL));

if(!(dF=dE(bm.ongetxhr,[ad.bK])))
{
return ad;
}


bm.bGlobal&&!Kl++&&qA("start");
dF.open(aT,bj,bm.bAsync);


try
{
(gL||bq&&bq.sContentType)
&&dF.setRequestHeader("Content-Type",bm.sContentType);

dF.setRequestHeader("Accept",[bm.sDataType&&VC[bm.sDataType],
VC.pK].join(", "));
}
catch(bi)
{
}

if(dE(cR,bm.onbeforesend,[dF])===false)
{

bm.bGlobal&&!--Kl&&qA("stop");
dF.abort();
return ad;
}


bm.bGlobal&&qA("send");


dF.onreadystatechange=AS;



try
{
var asQ=dF.abort;
dF.abort=function()
{
var arx=dF;
arx&&!(dF=aB)
&&asQ.call(arx);
AS("abort");
};
}
catch(bi){}


if(bm.bAsync&&bm.nTimeout>0)
{
dR=setTimeout(
function()
{

dF&&!wO&&AS("timeout");
},
bm.nTimeout
);
}


try
{
dF.send(aT!="GET"?gL:aB);
}
catch(eb)
{
ez="senderr";
TU();
Jz();
}


!bm.bAsync&&AS();


function qA(cp,rq)
{
ad.event$("ajax").fireEvent(cp,rq,{oContext:cR});
}


function Jz()
{

!!dR&&(clearTimeout(dR)||1)&&(dR=0);

dE(cR,bm.oncomplete,[dF,ez]);

bm.bGlobal&&qA("complete",[dF,ez]);

bm.bGlobal&&!--Kl&&qA("stop");

}


function TU()
{
dE(cR,bm.onerror,[dF,ez,eb]);

bm.bGlobal&&qA("error",[dF,ez,eb]);
}


function aod()
{
dE(cR,bm.onsuccess,[Kr,ez,dF]);

bm.bGlobal&&qA("success",[Kr,ez,dF]);
}

function AS(AN)
{

if(!dF||dF.readyState===0||AN==="abort")
{
wO=true;
dF&&(dF.onreadystatechange=ql);



!wO&&Jz();
}

else if(!wO&&dF&&(dF.readyState===4||AN==="timeout"))
{
wO=true;
dF.onreadystatechange=ql;
ez=AN==="timeout"?
"timeout":
!apz(dF)?"error":"success";

if(ez==="success")
{
try
{
Kr=arp(dF,bm.sDataType,bm);
}
catch(abt)
{
ez=abt.type||"parsererror";
eb=abt;
}
}

(ez==="success"?aod:TU)();

Jz();
AN==="timeout"&&dF.abort();

bm.bAsync&&(dF=aB);
}
}

return ad;
},










ajaxSetting:function(bq)
{
var wf=this;
bq?jo(Kk,bq):(wf=Kk);
return wf;
},

















get:function()
{
return this.ajax(Ih(arguments,"GET"));
},















load:function()
{
var ad=this,
nS;

ad.each(function(aW)
{
if(hO(aW))
{
nS=aW;
return false;
}
}
);

if(!nS)
{
return ad;
}

var rK=Ih(arguments,"GET","oncomplete"),

apX=rK.onsuccess;

return ad.ajax(jo(rK,
{
sDataType:"html",
onsuccess:function()
{
nS.innerHTML=UQ(arguments[0]);
dE(this,apX,arguments);
}
}
));
},




















loadJS:function(rh,bq,abL)
{
var ad=this,
aD=ad.bK,
nW=ad.$("<script>"),
Bg=nW.data(0),
pk=function(sI,asn)
{
if(dR!=0)
{
aD.clearTimeout(dR);
dR=0;

asn
?aD.setTimeout(function(){dE(Bg,bq,"onload",[!!sI]);},100)
:dE(Bg,bq,"onload",[!!sI]);
if(bq.bNeedRemove===true)
{
nW.remove();
}
}
},
dR=aD.setTimeout(function()
{
pk(false);
nW.remove();
},

le(bq&&bq.nTimeout)?bq.nTimeout:10000
);

ad.each(abL,function(uo,bT)
{
!gf(uo)&&Bg.setAttribute(bT,uo);
}
)
.$("head").append(
jo(Bg,
{
type:"text/javascript",
src:rh,
onload:pk,
onreadystatechange:function()
{
({loaded:true,complete:true}[this.readyState])&&pk(true,true);
}
}
)
);

return ad;
},

















post:function()
{
return this.ajax(Ih(arguments,"POST"));
}
}
);
}
)()
);





aG.extend("method",
(function()
{







function xh(jk,pC,au)
{
var ad=this;
ad.Cg=jk.join?jk.join(""):jk.toString();
ad.vT=pC||"$";
ad.afv=au=="exp"
?ad.afA
:ad.aew;
};

xh.prototype=
{








toString:function()
{
return this.Cg;
},







replace:function(jn,si)
{
return this.afv(jn,si);
},





aew:function(jn,aeD)
{

var ad=this,
sd=ad.vT,
pB=ad.MW,
CH=ad.afH,
Nj=!pB;

if(Nj)
{

pB=ad.MW=ad.Cg.split(ad.vT);
CH=ad.afH=ad.MW.concat();
}

for(var i=1,aN=pB.length;i<aN;i+=2)
{
CH[i]=ad.qH(Nj?(pB[i]=pB[i].split("."))
:pB[i],jn,aeD,sd);
}

return CH.join("");
},

afA:function(jn,si)
{
var ad=this,
oi;

if(!ad.MC)
{
ad.afd();
}

if(si)
{
var vV=ad.Mt[si];
if(vV)
{
oi=typeof vV!="function"
?ad.Mt[si]=ad.MY(vV)
:vV;
}
}
else
{
oi=ad.MC;
}

try
{
return oi&&oi(jn,ad.Yl,
ad.qH,ad.vT,uL)||"";
}
catch(bi)
{
return bi.message;
}
},




afd:function()
{
var ad=this,
ji=0,
hy=[],
Ch=[],
BW=[],
afz=ad.Mt=[],
sd=ad.vT,
mc=new RegExp(["","(.*?)",""].join(KG(sd)),"g"),
sH="_afG('$1'.split('.'),_oD,_aoD,_aoR)",
yf=ad.Yl=ad.Cg.split(["","@",""].join(sd)),
eC;

for(var i=0,aN=yf.length;i<aN;i++)
{
eC=yf[i];

if(i%2==0)
{
hy.push("_oR.push(_aoT[",i,"].replace(_oD,_aoD));");
yf[i]=new xh(eC,sd);
}
else if(eC=="else")
{
hy.push("}else{");
}
else if(eC=="endsec")
{
if(BW.length)
{
var az=BW.pop();
afz[az[0]]=hy.slice(az[1]);
}
}
else if(eC=="endfor")
{
Ch.length&&hy.push(
"try{delete _oD._parent_;delete _oD._idx_;}catch(e){}",
"}_oD=_oS",Ch.pop(),";");
}
else if(eC=="endif")
{
hy.push("}");
}
else if(eC.indexOf("else if(")==0)
{
hy.push("}",eC.replace(mc,sH),"{");
}
else if(eC.indexOf("if(")==0)
{
hy.push(eC.replace(mc,sH),"{");
}
else if(eC.indexOf("for(")==0)
{
Ch.push(++ji);
hy.push(
"var _sI",ji,",_oD",ji,",_oS",ji,"=_oD;",
eC.replace(mc,
["_sI",ji," in (_oD",ji,"=",sH,")"].join("")),
"{",
"_oD=_oD",ji,"[_sI",ji,"];",
"try{",
"_oD._parent_=_oS",ji,";",
"_oD._idx_=_sI",ji,";",
"}catch(e){}"
);
}
else if(eC.indexOf("sec ")==0)
{
BW.push([eC.split(" ").pop(),hy.length]);
}
else if(eC.indexOf("eval ")==0)
{
hy.push("_oR.push(",eC.substr(5).replace(mc,sH),");");
}
else if(eC.indexOf("html(")==0)
{
hy.push("_oR.push(_afE(",eC.substr(5).replace(mc,sH),");");
}
}


ad.MC=ad.MY(hy);

return hy;
},

MY:function(aeV)
{
try
{
return eval(
[
'([function(_aoD,_aoT,_afG,_aoR, _afE){var _oR=[],_oD=_aoD;',
aeV.join(""),
'return _oR.join("");}])'
].join("")
)[0];
}
catch(eb)
{
return function(){return"compile err!"};
}
},

qH:function(Cx,jn,aeu,acu)
{
var aN=Cx.length,
cz,
ia;

if(aN>1)
{
try
{
ia=jn;
for(var i=0;i<aN;i++)
{
cz=Cx[i];
if(cz=="_root_")
{
ia=aeu;
}
else
{
ia=ia[cz];
}
}
}
catch(bi)
{
ia="";
}
}
else
{
ia={
"_var_":acu,
"_this_":jn
}[cz=Cx[0]]||jn[cz];
}

return ia;
}
};


return(
{









T:function(jk,pC)
{
return new xh(jk,pC);
},












































TE:function(jk,pC)
{
if(at.QMTmplChecker)
{
var bi=(new at.QMTmplChecker(jk.join?jk:[jk],
pC)).getErrors();
bi.length&&at.debug&&at.debug(bi.join("\n"),"code");
}
return new xh(jk,pC,"exp");
}
}
);
}
)()
);






aG.extend("method",
(function()
{
function Uf(anG)
{
return function(tm,hQ,ax)
{
var ad=this;
return eN(tm)&&ad.bK[anG](
function()
{
ad.call((ax&&ax.oContext)||ad,tm,ax&&ax.oParam);
},
hQ
)||-1;
};
}

return(
{







canLoop:wY,













setInterval:Uf("setInterval"),













setTimeout:Uf("setTimeout"),








eval:function(hW)
{
if(hW&&aqS.test(hW))
{


var bc=this.bK.document,
Ax=bc.getElementsByTagName("head")[0]||bc.documentElement,
gI=bc.createElement("script");

gI.type="text/javascript";

if(this.support("scriptEval"))
{
gI.appendChild(bc.createTextNode(hW));
}
else
{
gI.text=hW;
}



Ax.insertBefore(gI,Ax.firstChild);
Ax.removeChild(gI);
}

return this;
},










evalVal:function(hW)
{
var cz="_gEVaLvAl_",
aD=this.bK,
ia;
hW&&this.eval("(function(){try{window."+cz+"="+hW+";}catch(_oError){}})();");
ia=aD[cz];
aD[cz]=aB;
return ia;
},












extend:jo,











extendEx:mK(dE),








filteScript:UQ,






noop:ql,








isAccess:function()
{
return qy(this.bK);
},








isArr:wN,








isDom:hO,








isFunc:eN,








isNull:gf,








isNum:le,








isObj:oA,








isStr:hN,








isAccessWin:qy,







now:jM,








random:Uo,








regFilter:KG,








statTime:function(au)
{
var ad=this,
gW=jM();
au!="reset"&&zq([au,gW-Ry].join(":"));
Ry=gW;
return ad;
},








toArr:tA,









toMap:aoY,









toNum:aqo,








toStr:UR,








unikey:Db,








unique:uA,








trim:XG,








htmlEncode:uL,








htmlDecode:function(cd)
{
return cd&&cd.replace?(cd.replace(/&nbsp;/gi," ").replace(/&lt;/gi,"<").replace(/&gt;/gi,">")
.replace(/&quot;/gi,"\"").replace(/&#39;/gi,"'").replace(/&amp;/gi,"&")
):cd;
},









getAsiiStrLen:function(cd)
{
return(cd||"").replace(/[^\x00-\xFF]/g,"aa").length;
},











subAsiiStr:function(cd,tO,ZL,Mx)
{
var ad=this,
IK=function(gl){return gl},
Jt=Mx?ad.htmlEncode:IK,
hi=(Mx?ad.htmlDecode:IK)(ad.trim((cd||"").toString())),
Fk=ZL||"",
QU=Math.max(tO-Fk.length,1),
acV=hi.length,
yT=0,
yb=-1,
sP;

for(var i=0;i<acV;i++)
{
sP=hi.charCodeAt(i);


yT+=sP==35||sP==87
?1.2
:(sP>255?1.5:1);

if(yb==-1&&yT>QU)
{
yb=i;
}

if(yT>tO)
{
return Jt(hi.substr(0,yb))+Fk;
}
}

return Jt(hi);
},








isUrl:function(gl)
{
return(gl||"").replace(
/(((http|https|ftp):\/\/)|www\.)[-\w.]+(:\d+)?(\/([\w\/_=.%-]*(\?[^\s\u4e00-\u9fa5]+)?)?)?/ig,"url")=="url";
},












wait:function(aen,Pj,Ns,EV)
{
var ad=this,
dL=0,
qJ=Ns||500,
aeP=(EV||10*500)/qJ;

(function()
{
if(dE(ad,aen))
{
return dE(ad,Pj,[true]);
}

if(dL++>aeP)
{
return dE(ad,Pj,[false]);
}

setTimeout(arguments.callee,qJ);
}
)();

return ad;
}
}
);
}
)()
);





aG.extend(
"method",
(function()
{

function QP()
{
return document.domain;
}

return(
{












setCookie:function(aQ,cj,pX,dj,nN,tE)
{
aQ&&(document.cookie=this.T(
[
'$name$=$value$; ',
!pX?'':'expires=$expires$; ',
'path=$path$; ',
'domain=$domain$; ',
!tE?'':'$secure$'
]
).replace(
{
name:aQ,
value:(cj||"").replace(/%/ig,"%25")
.replace(/=/ig,"%3D").replace(/;/ig,"%3B"),
expires:pX&&pX.toGMTString(),
path:dj||'/',
domain:nN||QP(),
secure:tE?"secure":""
}
)
);

return this;
},








getCookie:function(aQ)
{
return(new RegExp(["(?:; )?",KG(aQ),"=([^;]*);?"].join("")))
.test(document.cookie)&&decodeURIComponent(RegExp["$1"]);
},










delCookie:function(aQ,dj,nN)
{
return this.setCookie(aQ,"",new Date(0),dj,nN);
}
})
}
)()

);




aG.extend("method",
(function()
{
var LT=
{27:'esc',9:'tab',32:'space',10:"enter",13:'enter',8:'backspace',145:'scroll',
20:'capslock',144:'numlock',19:'pause',45:'insert',36:'home',46:'del',
35:'end',33:'pageup',34:'pagedown',37:'left',38:'up',39:'right',40:'down',
107:'=',109:'-',
112:'f1',113:'f2',114:'f3',115:'f4',116:'f5',117:'f6',118:'f7',119:'f8',
120:'f9',121:'f10',122:'f11',123:'f12',188:'<',190:'>',
191:'/',192:'`',219:'[',220:'\\',221:']',222:'\''




},
yc=
{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&",
"8":"*","9":"(","0":")","-":"_","=":"+",";":":","'":"\"",",":"<",
".":">","/":"?","\\":"|"
};

function apt(uc)
{
return uc>=49&&uc<=90;

}


function CB(kY)
{
return(kY||"").toLowerCase().split("+").sort().join("").replace(/\s/ig,'');
}

return{







hotKey:function(ae)
{
var ek=ae.keyCode,
kK=LT[ek],
AP=!kK&&apt(ek)&&String.fromCharCode(ek).toLowerCase(),
vj=ae.ctrlKey,
rC=ae.shiftKey,
vn=ae.altKey,
yk=rC&&(yc[AP]||yc[kK]),
aK=[];

if(!vj&&!vn&&yk)
{
kK=yk;
rC=AP=null;
}

vj&&aK.push("ctrl");
rC&&aK.push("shift");
vn&&aK.push("alt");
kK&&aK.push(kK);
AP&&aK.push(AP);

return aK.join("+");
},









isHotKey:function(ae,kY)
{
return(CB(this.hotKey(ae))==CB(kY));
}
};
}
)()
);





aG.extend("method",
(function()
{
var BA="_aNi_",
Vv="_qUEuE_",
Be="processing",
Wl="_step_event_",
apo=/^([+-]=)?([\d+-.]+)(.*)$/,

wZ={slow:600,fast:200,pK:400},
Vj="swing",
Kz=aG.easing=
{
linear:function(p,n,f,d)
{
return f+d*p;
},
swing:function(p,n,f,d)
{
return((-Math.cos(p*Math.PI)/2)+0.5)*d+f;
}
},
VN=
{
opacity:function(lp)
{
lp.ds.css("opacity",lp.ti);
},

pK:function(lp)
{
lp.ds.css(lp.tH,
(lp.tH==="width"||lp.tH==="height"?
Math.max(0,lp.ti):lp.ti)+lp.Wd
);
}
},

mP=[],

zZ=0
;


function tf(aW,fc)
{
if(oA(aW))
{
var ad=this,
qv=fc[0]||BA,
BB=fc[1],
Js=aW[Vv]=(aW[Vv]||{});
gz=Js[qv];

if(BB==="clear")
{
if(gz)
{
if(gz[0]===Be)
{
gz.length=1;
}
else
{
delete Js[qv];
}
}
}
else if(BB==="shift")
{
var Bp=gz&&gz.shift();


if(Bp===Be)
{
Bp=gz.shift();
}

if(Bp)
{

qv===BA&&gz.unshift(Be);


dE(ad,Bp,
[
aW,
function()
{
tf.call(ad,aW,[qv,"shift"]);
}
]
);
}
}
else if(BB==="len")
{
return gz?gz.length:0;
}
else
{
!gz&&(gz=Js[qv]=[]);
gz.push(BB);


if(qv===BA&&gz[0]!==Be)
{
tf.call(ad,aW,[qv,"shift"]);
}
}
}
}


function eH(uo,aiW)
{
return aiW(uo)?uo:aB;
}


function asI(bnW,AX,Wv,iZ)
{
var dw=oA(AX)?AX:
{
vDuration:AX,
sEasing:eH(Wv,hN),
oncomplete:eH(iZ,eN)||eH(Wv,eN)||
eH(AX,eN)
},
Wr=dw.oncomplete;

dw.hc=le(dw.vDuration)?dw.vDuration:
wZ[dw.vDuration]||wZ.pK;

dw.oncomplete=function()
{


eN(Wr)&&this.call(Wr);
dw.bQueue!==false&&this.dequeue();
};

return dw;
}

function Im(IQ,Vo)
{
var hj=apo.exec(IQ),
hV,te;

if(hj)
{
hV=parseFloat(hj[2]);
hj[1]&&(hV=((hj[1]==="-="?-1:1)*hV)+Vo);
te=hj[3];
}
else if(IQ)
{
hV=parseFloat(IQ);
}
else
{
hV=Vo;
}

return{hV:hV,te:te};
}


function Vw(dg,wE,UM)
{
var ad=this,
aqH=wE.Br[UM],
aoo=wE.sEasing||Vj;

ad.ds=dg;
ad.Vs=wE;
ad.tH=UM;
ad.asT=Kz[aqH]||
Kz[aoo]||
Kz[Vj];
}


Vw.prototype=
{
arw:function()
{
var ad=this,
hV=parseFloat(ad.ds.css(ad.tH));

return hV&&hV>-10000?hV:0;
},


Ff:function(pA,Xv,asF)
{
var ad=this;

ad.QE=jM();
ad.CZ=pA;
ad.TP=Xv;
ad.ti=ad.CZ;
ad.Wd=asF||ad.Wd||"px";
ad.IZ=ad.mnState=0;

function Jb(mM)
{
return ad.Nu(mM);
}

Jb.ar=ad.ds.data(0);

Jb()&&mP.push(Jb)&&!zZ&&
(zZ=setInterval(aaJ,13));
},


Nu:function(mM)
{
var ad=this,
dw=ad.Vs,
hc=dw.hc,
dL=jM(),
Vu=true;

if(mM||dL>=hc+ad.QE)
{
var ld=dw.ld;

ad.ti=ad.TP;
ad.IZ=ad.hZ=1;
ad.xn();

ld[ad.tH]=true;


for(var i in ld)
{
if(ld[i]!==true)
{
Vu=false;
break;
}
}

if(Vu)
{

!gf(dw.IM)&&
ad.ds.css("overflow",dw.IM);


ad.ds.call(dw.oncomplete);
}

return false;
}
else
{
var qa=dL-ad.QE;

ad.hZ=qa/hc;
ad.IZ=ad.asT(
ad.hZ,qa,0,1,hc);
ad.ti=ad.CZ+
((ad.TP-ad.CZ)*ad.IZ);

ad.xn();

return true;
}
},


xn:function()
{
var ad=this,
gx=ad.tH;

if(gx===Wl)
{
ad.ds.call(ad.Vs.onstep,[ad.ti,ad.hZ]);
}
else
{
(VN[gx]||VN.pK)(ad);
(gx==="height"||gx==="width")&&
ad.ds.css("display","");
}
}
}

function aaJ()
{
for(var i=0;i<mP.length;i++)
{
!mP[i]()&&mP.splice(i--,1);
}

!mP.length&&arV();
}



function arV()
{
clearInterval(zZ);
zZ=0;
}



var
wZ={
slow:600,
fast:200,
pK:400
},
aoE=/^([+-]=)?([\d+-.]+)(.*)$/,
wR="_fxCallback_",
BH="_fxTimeId_";

function apv(nl,ou,gq){
var	ad=this,
dB=nl&&typeof nl==="object"?
nl:
{
oncomplete:gq||!gq&&ou||
ad.isFunc(nl)&&nl,
duration:nl,
ou:gq&&ou||ou&&typeof ou==="string"&&ou||"linear"
};

dB.duration=typeof dB.duration==="number"?dB.duration:
wZ[dB.duration]||wZ.pK;


dB.old=dB.oncomplete;
dB.oncomplete=function(){
var ad=this;
if(dB.queue!==false){
ad.dequeue();
}
if(ad.isFunc(dB.old)){
dB.old.call(ad);
}
};

return dB;
}




return(
{












queue:function(au,tm)
{
if(!hN(au))
{
tm=au;
au=BA;
}

return eN(tm)?this.each(tf,{vParam:[au,tm]}):this;
},








queueLen:function(au)
{
return tf(this.data(0),[au,"len"]);
},











dequeue:function(au)
{
return this.each(tf,{vParam:[au,"shift"]});
},











clearQueue:function(au)
{
return this.each(tf,{vParam:[au,"clear"]});
},





























animate:function()
{
var ad=this,
bz=arguments,
qp=bz[0],
Ue=asI.apply(ad,bz);

return ad[Ue.bQueue===false?"each":"queue"](
function(ap)
{
var ad=this.$(ap),
ld={},
Br={},
dw=ad.extend(
{
ld:ld,
Br:Br
},
Ue
),
gx,BG,IW;

for(gx in qp)
{
BG=aG.camelName(gx);

if(gx!==BG)
{
qp[BG]=qp[gx];
delete qp[gx];
gx=BG;
}

if((gx==="height"||gx==="width")&&ap.style)
{

dw.IM=ad.css("overflow");
}

if(wN(IW=qp[gx]))
{
Br[gx]=IW[1];
qp[gx]=IW[0];
}

ld[gx]=qp[gx];
}

if(dw.IM!=aB)
{
ad.css("overflow","hidden");
}


eN(dw.onstep)&&(ld[Wl]=1);


if(ad.call(dw.onready)===false)
{
dw.hc=0;
}

ad.each(ld,function(er,aQ)
{
var KJ=new Vw(ad,dw,aQ),
AR=KJ.arw()||0,
yO=UR(er).split(","),
Cn,qM;

if(yO.length>1)
{
Cn=Im(yO[0],AR);
qM=Im(yO[1],AR);
KJ.Ff(Cn.hV,qM.hV,Cn.te||qM.te);
}
else
{
qM=Im(yO[0],AR);
KJ.Ff(AR,qM.hV,qM.te);
}
}
);
}
);
},









stop:function(IR,mM)
{
var ad=this;

IR&&ad.clearQueue();

ad.each(function(ap)
{

for(var i=mP.length-1;i>=0;i--)
{
if(mP[i].ar===ap)
{

mM&&mP[i](true);
mP.splice(i,1);
}
}
}
);


!mM&&this.dequeue();

return this;
},


animate2:function(tC,nl,ou,gq)
{
var om=[],aH,WF,FZ,
dB=apv(nl,ou,gq);

for(aH in tC)
{
om.push(aH);
}
WF=om.join(", ");

return this[dB.queue===false?"each":"queue"]
(
function(ap)
{
var ad=this.$(ap);

dB.onready&&dB.onready.call(ad);

for(aH in tC)
{
var parts=aoE.exec(tC[aH]);
if(parts&&parts[1])
{
var end=parseFloat(parts[2]),
start=parseFloat(ad.css(aH))||0,
unit=parts[3];

end=((parts[1]==="-="?-1:1)*end)+start;
tC[aH]=end+unit;
}
}
ad.css
(
{
"webkitTransitionProperty":WF,
"webkitTransitionDuration":dB.duration+"ms",
"webkitTransitionTimingFunction":dB.easing
}
)
FZ=window.setTimeout
(
function()
{
ad
.css("webkitTransitionProperty","none");
dB.oncomplete.call(ad);
ad.data(0)[wR]=aB;
ad.data(0)[BH]=aB;
},
dB.duration
);

ad.data(0)[wR]=dB.oncomplete;
ad.data(0)[BH]=FZ;

ad.css("display")=="none"&&
ad.css("display","block");

ad.bK.setTimeout(
function()
{
for(aH in tC){
ad.css(aH,tC[aH]);
}
},0
);
}
);
return ad;
},

stop2:function(IR,mM)
{
var ad=this;
if(IR)
{
ad.queue([]);
}

ad.each(
function(ap)
{
var
al=ad.$(ap),
WP=al.css("webkitTransitionProperty"),
om=WP&&WP.split(",")||[],
gG={};

for(var i=0;i<om.length;i++)
{
var name=ad.trim(om[i]);
gG[name]=al.css(name,!mM);
}

gG["webkitTransitionProperty"]="none";

for(var i in gG)
{
al.css(i,gG[i]);
}

if(mM&&al.data(0)[wR])
{
al.data(0)[wR]();
}
ad.bK.clearTimeout(al.data(0)[BH]);
al.data(0)[wR]=aB;
al.data(0)[BH]=aB;
al.dequeue();
}
);
return ad;
}


}
);
}
)()
);





aG.extend("instance",
function(at)
{

at.debug=function()
{
return zq.apply(at.QMWin,arguments);
};

at.log=acR;


at.onerror=function(cm,bu,Ml)
{

var hc=jM()-oI.aol;
if(!le(hc)||hc>100||hc<0)
{
Ww(
{
oErr:(
{
message:cm,
fileName:bu,
number:Ml
}
),
fFunc:arguments.callee.caller
}
);
}

return qR<Cp;
};


try
{
at.document.execCommand("BackgroundImageCache",false,true);
}
catch(bi)
{
}


if(at.attachEvent&&!at.addEventListener)
{
var axk=at.QMWin.toMap(
'location|name|status|title|defaultStatus'.split("|"),true);
at.QMWin.addPageUnloadEvent(function()
{
for(var i in at)
{
try
{

!axk[i]&&(at[i]=null);
}
catch(pV){}
}
}
);
}
}
);


tj(at);

}
)(window);










(function(at,aB)
{
var 
fd="QMFW/11.01.08",

ao=at.QMWin,

aG=ao.ctor_(),

oD=aG.prototype,

be=ao.cfg_(),

mK=oD.fnCreater_;





aG.extend("version",fd);





aG.extend("method",
{






uin:function()
{
return this.toNum(be.sUin,0);
},







encryptuin:function()
{
return be.sEncryptUin||"0";
},








path:function(au)
{
return this.isNull(au)?be.oPath:be.oPath[au]||"";
},







sid:function()
{
return be.sSid;
},






from:function()
{
return be.sFrom||"ml";
},










suffix:function(pn)
{
var lI=pn;

if(aG.CFG_DBG_TYPE>aG.DBG_DEV_TYPE)
{
lI+=(lI.indexOf("?")>-1?"&":"?")+"r="+this.random();
}
return lI;
}
}
);










aG.debug=function()
{
var bz=arguments,
Jg=bz[bz.length-1];


if(ao.isNum(Jg)&&Jg>1000000)
{
bz=Jg==ao.uin()?
ao.toArr(bz).slice(0,-1):aB;
}

return bz;
};





aG.extend("method",
{








package:LS,








pkgStatus:UX,












loadPkg:function(Jj,bJ)
{
var ad=this,
bo=bJ;
ad.isFunc(bo.onload)&&(bo=
{
AK:ad.bK["_guid_"],
onload:function()
{
bo.AK===ad.bK["_guid_"]
&&ad.call(bJ.onload,arguments);
}
}
);

asP(ad.canLoop(Jj)?Jj:[Jj],bo);
return ad;
}
}
);





aG.extend("method",
{












run:function(ep,jf)
{
var ad=this,
Kt=ad.bK[HX];
return ad.callEx(Kt,ep,jf);
},
























createApp:TV,
























createAppEx:mK(TV),
















main:function(jf)
{
var ad=this,
aD=ad.bK;
if(!aD[HX])
{
ad.loadPkg(jf.oPkg,
{
onload:ad.safeByConf(
function(by,cm)
{
if(by)
{
var Kt=jf.sApp?Jy[jf.sApp]:jf.fApp;
aD[HX]=new Kt(aD,jf.oCfg)
}
ad.call(jf.oncomplete,arguments);
},
"main_onload_func"
)
}
);
}
return ad;
},













lib:Wu,









libEx:mK(Wu),














createLib:Vd,














createLibEx:mK(Vd),



























ctrl:VZ,























ctrlEx:mK(VZ),














createCtrl:Wo,














createCtrlEx:mK(Wo)
}
);








var
atg=
[

"none",

"load fail",

"compile err",

"cycle dependent err",

"waiting",

"loading",

"loaded",

"complete"
],

fy={},





apn=aG.CFG_DBG_TYPE>aG.DBG_DEV_TYPE,
TJ=aG.CFG_DBG_TYPE>aG.DBG_ERR_TYPE,
aru=apn,

wi=oD.safe(function(KF,by,jL,tn)
{
ao.call(KF,[by,jL,tn]);
},
"pkg onload"
);

function Um(qu,bC)
{
var tk=qu.WR||(qu.WR=[]);
ao.isFunc(bC)&&tk.push(bC);
return tk;
}

function ati(eO,Bn)
{
var wk=Bn.Wa;
if(!wk)
{
wk=Bn.Wa={};
wk[Bn.hb]=true;
}

if(wk[eO]===true)
{

jv(wu(eO),3);
wT(Bn,false,xa(eO),3);
}
else
{
wu(eO).Wa=ao.extend(
{bnQ:true},wk);
}
}

function wT(qu,by,jL,tn)
{
var tk=qu.WR;
if(tk)
{
while(tk.length>0)
{
wi(tk.shift(),by,jL,tn);
}
}
}

function xa(eO,cm)
{
return["[",eO,"] ",cm||UX(eO),"; "].join("");
}

function wu(eO)
{
return eO?
(fy[eO]||(fy[eO]={hb:eO})):

{UF:7};
}

function UX(eO)
{
return atg[jv(wu(eO))];
}

function jv(qu,Wb)
{
return aB===Wb
?qu.UF||0
:qu.UF=Wb;
}




function Wp(eO,bJ)
{
var fy=wu(eO),
bo=bJ||{};

switch(jv(fy))
{

case 0:

case 1:
var fq=ao.path("js"),
lI=ao.suffix(eO),
bo=ao.extend({},bJ);

jv(fy,5);
Um(fy,bo.onload);

bo.onload=function(aNF)
{


if(jv(fy)==5)
{
jv(fy,1);
wT(fy,false,xa(eO));
}
};


ao.loadJS(fq+lI,bo,{charset:be.sCharSet});
break;

case 2:

case 3:
wi(bo.onload,false,xa(eO));
break;

case 4:

case 5:

case 6:
Um(fy,bo.onload);
break;

case 7:
wi(bo.onload,true);
break;
default:
wi(bo.onload,false,xa(eO,"statusid err:"
+jv(fy)));
break;
}
}




function asP(Jc,bJ)
{
var bo=bJ||{},
kb=Jc.length,
iQ=true,
WB=[],
Km;
ao.each(Jc,Wp,
{
vParam:ao.extend({},bo,
bo.onload?{
onload:function(by,jL)
{
iQ=by&&iQ;
jL&&WB.push(jL);
if(--kb==0)
{
Km=WB.join(" || ");

TJ&&!by&&debug(
"load pkg["+Jc+"] error:"+Km);

wi(bo.onload,iQ,Km);
}
}
}:aB
)
}
);
}




function LS(eO,aqf,VR)
{
var fy=wu(eO),
Kb=aqf||[],
arX=Kb.length;

if(jv(fy)<6)
{
function WS(by,jL,tn)
{
if(!by)
{

jv(fy,tn||1);
wT(fy,false,xa(eO)+jL,tn||1);
}

else if(--arX<0)
{
try
{

VR();
jv(fy,7);
wT(fy,true);
}
catch(ae)
{
if(TJ)
{
debug(ae);
debug(VR);
}

jv(fy,2);
wT(fy,false,[eO," compile err:",ae.message].join(""));
}
return true;
}
}
jv(fy,6);

if(!WS(true))
{

ao.each(Kb,Wp,
{
vParam:{onload:WS}
}
);

aru&&ao.each(Kb,ati,
{
vParam:fy
}
);
}
}
};






aG.extend("method",
(function()
{
var Sn={"sid":1,"username":1,"foxacc":1,

"m3gmsid":1,"mcookie":1,"msid":1,"defaultf":1,
"qm_flag":1,"QFRIENDUNREADCNT":1,"RSSUNREADCNT":1,"rss_domain":1,"qqmail_activated":1,"qqmail_alias_default":1,
"qqmail_from":1,"wimrefreshrun":1,"new":1,"qm_sk":1,"qm_ssum":1,"qq2self_sid":1,"exstype":1,"lockurl":1,"new_mail_num":1};

return(
{
setUserCookie:function(aQ,cj,pX,dj,nN,tE)
{
if(Sn[aQ]==1)
{
var qP=ao.getCookie(aQ),
ee=qP?qP.split("|"):[],
bX=ao.uin(),
bn=bX+"&"+cj,
cP=true;


for(var i=0;i<ee.length;i++)
{
if(ee[i].match(bX))
{
ee[i]=bn;
cP=false;
}
}

qP=ee.join("|");
cP&&(qP+=(qP==""?"":"|")+bn);
return ao.setCookie(aQ,qP,pX,dj,nN,tE);
}
else
return ao.setCookie(aQ,cj,pX,dj,nN,tE);

},

getUserCookie:function()
{
var fV=ao.getCookie(aQ);

if(Sn[aQ]!=1)
{
return fV;
}
else
{
var ee=fV?fV.split("|"):[],
bX=ao.uin();

for(var i=0;i<ee.length;i++)
{
if(ee[i].match(bX))
{
return((ee[i].split("&"))[1]||ee[i]);
}
}
return fV;
}
}
})

})()
);





aG.extend("method",
(function()
{
var 
be=
{
url:"/cgi-bin/getinvestigate",
queueLen:100,
interval:5000,
formdata:ao.T('sid=$sid$&$rl$&$ls$')
},

aqG=ao.now(),

nz=[],

dR;

function afB(sk)
{
var kS=[];

ao.isStr(sk)?
kS.push("&",sk):
ao.each(sk,function(qc,bT)
{
kS.push("&",bT,"=",encodeURIComponent(qc));
}
);

return kS.shift()&&kS.join("");
}

function Nl(Bl)
{
return aqG%100<100*Bl;
}

function Ci(HO)
{
if(HO||nz.length>0)
{
ao.ajax(
{
sUrl:be.url,
sType:"POST",
vData:be.formdata.replace(
{
sid:ao.sid(),
rl:HO,
ls:nz.join("&")
}
)
}
);
nz.length=0;
dR&&clearTimeout(dR);
dR=null;
}
}

return(
{














ossLog:function(afG,Cc,sk,agv)
{
var aet=afG||"realtime",
MV=afB(sk),
kp=ao.isNum(Cc)?Cc:{all:1}[Cc||"all"]||0.1;


if(aet=="realtime")
{
Nl(kp)&&Ci(MV);
}

else
{

Nl(kp)
&&nz.push(["delayurl","=",encodeURIComponent(MV)].join(""));

nz.length>=be["queueLen"]?
Ci():

(!dR&&nz.length>0&&(dR=setTimeout(Ci,be["interval"])));
}
return this;
},












ossLogSetting:function(an)
{
ao.extend(be,an);
}
}
);
}
)()
);








var 
dE=oD.call,
wj=oD.safeByConf;

function KE(au,aQ,US,Uj,xc)
{
var 
wx=US.prototype=new Uj,

Uk=dE(
wj(xc,"create"+au+":"+aQ),
[Uj.prototype]
);

for(var fZ in Uk)
{
wx[fZ]=
wj(Uk[fZ],aQ+"."+fZ,true);












































}

wx.name_=function()
{
return aQ;
};

return US;
}

function Wk(ay,xP,lE)
{
return oD.call(this,ay,xP,lE);
}

function arI()
{
Wk.apply(this,arguments);
return this;
}

function JO(atc)
{
var WT=function(){};
oD.extend(WT.prototype,atc,
{

init_:ql,


super_:Wk,
superEx_:arI
}
);
return WT;
}

function TV()
{
var ad=this,
ps=arguments,

By=!ad.isStr(ps[0]),

KP=By?("_PageApp_:"+this.loc("href")):ps[0],

aon=By?ps[0]:ps[1],

arb=By?ps[1]:ps[2],

MD=function(at,as)
{
var ad=this,
bm={oContext:ad};




at&&(ad.$=at.QMWin)

&&(ad.init_(as)||true)

&&ad.$.ready(ad.process_,bm)


.addPageUnloadEvent(function()
{
ad.destroy_();
});
};

return KE(

"App",

KP,

By?MD:(Jy[KP]=MD),

Jy[aon.sSuper||"_defapp_"]||asW,

arb
);
}

function Vd(BF,Bm,xc)
{
var mR=pT[BF]=function(at,as)
{
var ad=this;

at&&(ad.$=at.QMWin)

&&ad.init_(as);
};

mR.aoc=!!Bm.bStatic;

return KE(

"Lib",

BF,

mR,

pT[Bm.sSuper||"_deflib_"]||apc,

xc
);
}

function Wu(BF,as)
{
var mR=pT[BF];

if(mR)
{
if(mR.aoc)
{

return mR.lZ||(mR.lZ=new mR(at,as));
}
else
{
return new mR(this.bK,as);
}
}
}

function Wo(kr,Bm,xc)
{
return KE(

"Ctrl",

kr,

Dz[kr]=function(at,as,ae)
{
var ad=this;

at&&(ad.$=at.QMWin)

.on(ad,ae||{})

&&ad.init_(as);
},

Dz[Bm.sSuper||"_defctrl_"]||anQ,

xc
);
}

function VZ()
{
var ad=this,
aD=ad.bK,
bz=arguments,
oO=bz[0],
wG=bz[1],
Jm=bz[2],
VI=aD[Vf]||(aD[Vf]={}),
Wn=VI[oO]||(VI[oO]={}),
Vb=Dz[oO],
VQ,eF;

if(ad.isStr(wG))
{
eF=Wn[wG];
if(ad.isStr(Jm))
{

return ad.call(eF,Jm,bz[3]);
}
}
else if(Vb)
{
eF=new Vb(aD,wG,Jm);
(VQ=wG&&wG.sId)&&(Wn[VQ]=eF);
}

return eF;
}

var ql=oD.noop,

HX="_QmFw_aPp_",

Jy={},

asW=JO(
{

process_:ql,

destroy_:function()
{
this.$=aB;
return this;
},

isDestroy:function()
{
return!this.$;
}
}
),

pT={},

apc=JO(),

Vf="_QmFw_Ctrl_",

Dz={},

anQ=JO(
{


fireEvent_:function(cp,jf)
{
var ad=this;
ad.$.fireEvent(ad,cp,jf);
return ad;
}
}
);





aG.handleErr=function(fN,aqL)
{
if(aqL)
{

var bR=(fN.oErr.fileName||"").split("?"),
wr=bR.shift().split("/").pop(),
cC=bR.join("?").split("&"),
WN={t:"t",s:"s"},
UN=[];

for(var i=0,aN=cC.length,Bi;i<aN;i++)
{
Bi=cC[i].split("=");
WN[Bi[0]]&&
UN.push(WN[Bi[0]],"=",Bi[1]);
}

ao.sid()&&ao.ossLog("delay","all",
{
stat:"js_run_err",
msg:fN.oErr.message,
line:fN.oErr.number||
fN.oErr.lineNumber||-1,
url:[wr,"?",UN.join("")].join(""),
func:(fN.sName||fN.fFunc)
?[fN.sName,fN.fFunc].join(":")
:""
}
);
}
}



var ZF=(at.pkg||{})["_pkgs_"],ZO;
at.pkg=LS;
if(oD.isArr(ZF))
{
while(ZO=ZF.shift())
{
LS.apply(this,ZO);
}
}

}
)(window);

